import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const useEmployeeSumApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/summary/employeePage`,
    method: "POST",
    data,
  });
};
export const useHotelSumApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/summary/hotelOrgPage`,
    method: "POST",
    data,
  });
};
export const useOrgSumApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/summary/empOrgPage`,
    method: "POST",
    data,
  });
};
export const useDetailSumApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/record/summary`,
    method: "POST",
    data,
  });
};
export const useHotelDetailApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/detail/hotelOrgPage`,
    method: "POST",
    data,
  });
};
export const useOrgDetailApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/detail/empOrgPage`,
    method: "POST",
    data,
  });
};
export const useEmployeeDetailApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/detail/employeePage`,
    method: "POST",
    data,
  });
};
